/*
* ============================================================================
*  Name        : example_009.hxx
*  Part of     : Finite state machine examples
*  Description : State machine body
*  Version     : %version: %
*  
*
* ============================================================================
*/
/**
    @code
    SM_DECLARE
    (
        Snake_src,
        Snake
        async
        {
            Exceptions
            {
                Ev_Sys_Terminate        exit                nojump
            }
            Move 10 0
            {
                Ev_Sys_Heartbeat        draw                nojump
                Ev_Ext_Key              check_input         nojump

                Ev_Int_MoveRight        move_right          nojump
                Ev_Int_MoveLeft         move_left           nojump
            }
        } 
    );
    @endcode
 */

SM_DECLARE
(
    Snake_src,
    Snake
    async
    {
        Exceptions
        {
            Ev_Sys_Terminate        exit                nojump
        }
        Move 10 0
        {
            Ev_Sys_Heartbeat        draw                nojump
            Ev_Ext_Key              check_input         nojump

            Ev_Int_MoveRight        move_right          nojump
            Ev_Int_MoveLeft         move_left           nojump
        }
    } 
);

